﻿using System;

using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DirectUI.Mobile.UI.Controls;

namespace AddressList
{
    public partial class Form1 : Form
    {
       private NavigationPanel np;
        public Form1()
        {
            InitializeComponent();
            this.WindowState = FormWindowState.Maximized;
            DirectUIHost host = new DirectUIHost();
            host.Bounds = this.ClientRectangle;
          np = new NavigationPanel();
            np.Bounds = this.ClientRectangle;
            Page page1 = new Page();
            DirectUILabel lb1 = new DirectUILabel("hello1", 0, 0, 200, 200);
            page1.Add(lb1);
            page1.Title = "page1";
            page1.Bounds = np.ClientRectangle;
            np.Pages.Add(page1);
            Page page2 = new Page();
            DirectUILabel lb2 = new DirectUILabel("hello2", 0, 0, 200, 200);
            page2.Add(lb2);
            page2.Title = "page2";
            page2.Bounds = np.ClientRectangle;
            np.Pages.Add(page2);
            this.Controls.Add(host);
            host.Add(np);
            np.SelectedIndex = 0;
           
        }

        private void menuItem1_Click(object sender, EventArgs e)
        {
            np.Forward();
        }
    }
}